<?php 
/* SVN FILE: $Id$ */
/* NotaDebito Test cases generated on: 2010-02-12 14:34:59 : 1266003299*/
App::import('Model', 'NotaDebito');

class NotaDebitoTestCase extends CakeTestCase {
	var $NotaDebito = null;
	var $fixtures = array('app.nota_debito');

	function startTest() {
		$this->NotaDebito =& ClassRegistry::init('NotaDebito');
	}

	function testNotaDebitoInstance() {
		$this->assertTrue(is_a($this->NotaDebito, 'NotaDebito'));
	}

	function testNotaDebitoFind() {
		$this->NotaDebito->recursive = -1;
		$results = $this->NotaDebito->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('NotaDebito' => array(
			'id'  => 1,
			'tipo_documento_id'  => 1,
			'numero_documento'  => 'Lorem ipsum d',
			'ruc_cliente'  => 'Lorem ips',
			'documento_referencia_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>